<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>页面1</title>
	<button id="forward">button</button>
</head>
<body>
	<a href="demo02.html">页面2</a>
</body>
</html>
<script>
	var forward = document.getElementById("forward");
	forward.onclick = function(){
		console.log(history,history.length);
		//前进一个网页
		history.forward();

		//前进两个页面
		history.go(2);
	};
</script>